home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / Preview.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2009-03-06  |  2.8 KB  |  97 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4.  
  5. <xsl:output method="html"
  6.     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  7.     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  8.  
  9. <xsl:template match="rss/channel">
  10.     <html>
  11.     <head>
  12.         <title>Preview</title>
  13.         <style type="text/css">
  14.             html {
  15.                 /*filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=white,endColorStr=#EBECF1);*/
  16.             }
  17.             body { 
  18.                 background-color: white; 
  19.                 color: black; 
  20.                 font: 80% "$FONT-NAME-NEWSPAPER$", Verdana, Arial, sans-serif;
  21.                 margin: 0;
  22.             }
  23.             a { text-decoration: none; }
  24.             a:hover { text-decoration: underline; }
  25.             a img { border: none; }
  26.     
  27.             /* override headings used by feeds */
  28.             h1,h2,h3,h4,h5,h6 { font-size: 100%; font-weight: bold; font-style: italic; }
  29.     
  30.             div#newspapertitle { 
  31.                 font-size: x-large;
  32.                 font-weight: bold;
  33.                 padding: 8px 28px;                
  34.                 background-color: $COLOR-PAGEHEAD2$;
  35.                 border-bottom: 1px solid $COLOR-PAGEHEAD2$;
  36.                 min-height: 28px;
  37.                 background-image: url($IMAGETHEMEDIR$pagehead.png);
  38.                 background-position: top left;
  39.                 background-repeat: repeat-x;
  40.             }
  41.             div#newspapertitle, div#newspapertitle a {
  42.                 color: $COLOR-PAGEHEAD-FONT$;                
  43.             }
  44.             
  45.             div#newsitems {
  46.                 margin: 22px 28px;                
  47.             }
  48.             div.newsitemtitle { 
  49.                 font-weight: bold; 
  50.                 font-size: medium;
  51.                 margin-bottom: 6px;
  52.             }    
  53.             
  54.             div.newsitemtitle a { color: black; }
  55.             
  56.             div.newsitemcontent {     
  57.                 padding-bottom: 22px;            
  58.                 border-bottom: 1px dotted black;
  59.                 margin-bottom: 22px;
  60.                 overflow: hidden;
  61.             }
  62.             div.newsitemheader { 
  63.                 font-size: small; 
  64.                 font-style: italic;
  65.                 margin-bottom: 12px;
  66.                 color: gray;
  67.             }
  68.             span.sep { margin: 0 5px; }    
  69.         </style>
  70.     </head>
  71.     <body>
  72.         <div id="newspapertitle">
  73.             <a href="{link}" title="{link}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
  74.         </div>
  75.     
  76.         <div id="newsitems">
  77.             <xsl:for-each select="item">
  78.                 <div class="newsitem">
  79.                    <div class="newsitemtitle">
  80.                          <a href="{link}" title="{link}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
  81.                     </div>
  82.                     <div class="newsitemheader">
  83.                         <xsl:value-of select="dateDisplay"/>
  84.                         <xsl:if test="author"><span class="sep">|</span> <xsl:value-of select="author" /></xsl:if>
  85.                         <xsl:if test="enclosure"><span class="sep">|</span><a href="{enclosure/@url}" title="{enclosure/@url}"><img src="$IMAGEDIR$enclosure.gif" align="absmiddle" /></a></xsl:if>
  86.                     </div>                    
  87.                     <div class="newsitemcontent">
  88.                         <xsl:value-of select="description" disable-output-escaping="yes"/>
  89.                     </div>
  90.                 </div>
  91.             </xsl:for-each>
  92.         </div>
  93.     </body>
  94.     </html>    
  95. </xsl:template>
  96.  
  97. </xsl:stylesheet>